import assessCheckApi from './api'
import { axios } from '@/utils/request'
import router from '@/router/index'
import blobType from '@/common/blobType'
var menuType = blobType.menuType
var fywflcodeArr = blobType.fywflcodeArr
var fywflcode = ''
//根据Id查询
export function queryJobByJobIdServe(params){
    fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
    return axios({
      url: assessCheckApi.queryJobByJobId,
      method:'get' ,
      params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
      url_1:'outside'
    })
}

//获取编码
export function getSqsxBm(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.getSqsxBm,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

//下一步（身份证验证）
export function spcyJcydjbVerifyJcydjb(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbVerifyJcydjb,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

//刷新登记表
export function spcyJcydjbQueryDjbById(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbQueryDjbById,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcyJcydjbUpdateJcydjb(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbUpdateJcydjb,
    method:'put' ,
    data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbUpdateLb(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbUpdateLb,
    method:'put' ,
    data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbaddDjgzjl(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbaddDjgzjl,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbupdateGzjl(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbupdateGzjl,
    method:'put' ,
    data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcyJcydjbdeleteGzjl(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbdeleteGzjl,
    method:'delete' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbaddDjwz(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbaddDjwz,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbupdateWz(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbupdateWz,
    method:'put' ,
    data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcyJcydjbdeleteWz(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbdeleteWz,
    method:'delete' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbsubmitJcydjb(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbsubmitJcydjb,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcyJcydjbfqJcydjb(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbfqJcydjb,
    method:'delete' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbreplateFile(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbreplateFile,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}
export function jcylxdjcjdownloadTjbGzFile(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.jcylxdjcjdownloadTjbGzFile,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}


export function spcyJcydjbgetPhoneBySfzh(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbgetPhoneBySfzh,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbsendYzm(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbsendYzm,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbexportExcelJcydjxq(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbexportExcelJcydjxq,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}
export function spcyJcydjbexportAllJcylbExcelZip(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbexportAllJcylbExcelZip,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}


export function spcyJcydjbupdateSjcjzt(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbupdateSjcjzt,
    method:'post' ,
    data:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function spcyJcydjbpreviewFile(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbpreviewFile,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}


export function spcyJcydjbsubmitPreview(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbsubmitPreview,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcyJcydjbpreviewReturn(params){
  fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
  return axios({
    url: assessCheckApi.spcyJcydjbpreviewReturn,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}
export function jcylxdjcjverifyJcydjb(params){
  return axios({
    url: assessCheckApi.jcylxdjcjverifyJcydjb,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}
export function jcylxdjcjjhInfoById(params){
  return axios({
    url: assessCheckApi.jcylxdjcjjhInfoById,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}
export function jcylxdjcjlxjhPxqd(params){
  return axios({
    url: assessCheckApi.jcylxdjcjlxjhPxqd,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}
export function jcylxdjcjdwList(params){
  return axios({
    url: assessCheckApi.jcylxdjcjdwList,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function jcylxdjcjjszcList(params){
  return axios({
    url: assessCheckApi.jcylxdjcjjszcList,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}
export function jcylxdjcjlxjhPxksks(params){
  return axios({
    url: assessCheckApi.jcylxdjcjlxjhPxksks,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}
export function jcylxdjcjuploadMyPhoto(params){
  return axios({
    url: assessCheckApi.jcylxdjcjuploadMyPhoto,
    method:'post' ,
    data:params,
    url_1:'outside',
  })
}
export function jcylxdjcjgetUserSignPhotoLink(params){
  return axios({
    url: assessCheckApi.jcylxdjcjgetUserSignPhotoLink,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function jcylxdjcjuploadMyQm(params){
  return axios({
    url: assessCheckApi.jcylxdjcjuploadMyQm,
    method:'post' ,
    data:params,
    url_1:'outside',
  })
}
export function jcylxdjcjuploadtjbgzFile(params){
  return axios({
    url: assessCheckApi.jcylxdjcjuploadtjbgzFile,
    method:'post' ,
    data:params,
    url_1:'outside',
  })
}

export function jcylxdjcjinitJcyJxpgdcb(params){
  return axios({
    url: assessCheckApi.jcylxdjcjinitJcyJxpgdcb,
    method:'get' ,
    params:params,
    url_1:'outside'
  })
}

export function jcylxdjcjupdatePgDcbXx(params){
  return axios({
    url: assessCheckApi.jcylxdjcjupdatePgDcbXx,
    method:'post' ,
    data:params,
    url_1:'outside',
  })
}

export function jcylxdjcjsubmitPgDcb(params){
  return axios({
    url: assessCheckApi.jcylxdjcjsubmitPgDcb,
    method:'get' ,
    params:params,
    url_1:'outside',
  })
}

export function jcylxdjcjupdateJsjxpj(params){
  return axios({
    url: assessCheckApi.jcylxdjcjupdateJsjxpj,
    method:'post' ,
    data:params,
    url_1:'outside',
  })
}

export function jcylxdjcjupdatePgDcb(params){
  return axios({
    url: assessCheckApi.jcylxdjcjupdatePgDcb,
    method:'post' ,
    data:params,
    url_1:'outside',
  })
}






